package com.zb.vo;

import com.zb.entity.FieldContentVo;
import com.zb.entity.FieldVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author WEN
 * @Date 2024/1/29 0029
 **/
@Data
@ApiModel("服务商认证字段对象")
public class NetworkAuthenFieldVo extends FieldVo {
    @ApiModelProperty(value = "认证字段ID，新增不必传，修改必传")
    private Long id;

    @ApiModelProperty(value = "排序，值越小，越靠前", example = "0")
    private Integer sort;

    @NotNull(message = "移动端显示项不能为空")
    @ApiModelProperty(value = "移动端显示 false-隐藏，true-显示", required = true, example = "true")
    private Boolean mobileShow;

    @Valid
    @ApiModelProperty(value = "单选/多选内容对象")
    private List<FieldContentVo> contents;

    @ApiModelProperty(value = "删除的单选/多选内容ID对象")
    private List<Long> delContentIds;
}
